#ifndef ROOTUI_H
#define ROOTUI_H
#include <QWidget>
#include <QCheckBox>
#include "pushbutton.h"
#include "calibrateui.h"
#define MicrType        0x15
#define BarType         0x14
#define PrinterType     0x13
#define PcType          0x16
class RootUI : public QWidget
{
    Q_OBJECT
    enum SwitchStat
    {
        CloseStat = 0,
        OpenStat
    };

public:
    explicit RootUI(QWidget *parent = 0);
protected:
    CalibrateUI *m_calUI;
signals:
    void    SendCalUIKeyBoardData(const QString &objName, const QString &Data);
    void    CallKeyBoard(const QString&,int);
public slots:
    void            ChangeLanguage(int);
    void            EnableRootFunction(bool);
    void            ReceiveKeyBoardData(const QString &objName, const QString &Data);
private slots:
    void            LoadFunction();
    void            MicrStatusChanged(int);
    void            BarStatusChanged(int);
    void            PrinterStatusChanged(int);
    void            PcStatusChanged(int);
    void            CheckSensor();
private:
    void            SendCmd(char type ,char c);
private:
    QCheckBox   *m_micrBtn;
    QCheckBox   *m_barcodeBtn;
    QCheckBox   *m_printerBtn;
    QCheckBox   *m_PcBtn;
    PushButton  *m_ico1;


};

#endif // ROOTUI_H
